<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="head.jsp"%>
	<table width="991" height="353" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:16px; margin-bottom:26px;">
  <tr>
    <td width="13" valign="top"></td>
    <td width="209" valign="top"><table width="209" height="32" border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F6DD">
      <tr>
        <td width="87" class="ab4" style="padding-left:15px; padding-top:3px;">招聘中心</td>
        <td width="13" class="ab4" ><img src="images/imgbyj/line.gif" width="13" height="32" /></td>
        <td width="109" class="r2" style="padding-top:7px;">Honor </td>
      </tr>
    </table>
        <table width="209" height="28" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="images/imgbyj/ab2.gif" width="209" height="28" /></td>
          </tr>
        </table>
      <table width="209" height="84" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center" valign="top" background="images/imgbyj/ab3.gif">


	<% 
			AboutusDaoImpl aboutusDaoImpl=new AboutusDaoImpl();
			List<Aboutus> aboutus=aboutusDaoImpl.getAboutusList();
			if(aboutus!=null&&aboutus.size()>0)
				for(Aboutus aboutus2:aboutus){
	
	 %>

                <table width="171" height="29" border="0" cellpadding="0" cellspacing="0" background="images/imgbyj/abbg.gif" style="margin-bottom:12px;">
                  <tr>
                    <td align="left"><a href="Aboutus.asp?Title=<%=aboutus2.getTitle() %>" class="lmenu" style="padding-left:50px; padding-top:4px;"><%=aboutus2.getTitle() %></a></td>
                  </tr>
                </table>

             <%
             }
             
              %>


              


            </td>
          </tr>
      </table>
      <table width="209" height="16" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="images/imgbyj/ab4.gif" width="209" height="16" /></td>
        </tr>
      </table></td>
    <td width="22" valign="top"></td>
    <td width="747" valign="top"><table width="747" height="28" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="69" class="ab4" style="padding-top:5px;"></td>
        <td width="113"><img src="images/imgbyj/ab5.gif" width="89" height="28" /></td>
        <td width="404" align="right"><img src="images/imgbyj/ab6.gif" width="45" height="28" /></td>
        <td width="161" class="ab5" style="padding-top:5px;">&gt; 招聘中心 &gt; </td>
      </tr>
    </table>
        <table width="740" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#D0D0C5">
          <tr>
            <td height="1"></td>
          </tr>
        </table>
      <table   border="0" align="center" cellpadding="0" cellspacing="0" style=" margin-top:41px; margin-left:12px; margin-right:12px; width: 600px;">
          <tr>
            <td valign="top" class="aboutus">
<table style="width: 700px" border="0" cellspacing="0" cellpadding="0">
        <%
        
                               	  int currentPage=1;
				if(request.getParameter("pageNo")!=null){
					currentPage=Integer.parseInt(request.getParameter("pageNo"));
				}   		
				
                               
        
        
        	RecruitDaoImpl recruitDaoImpl=new RecruitDaoImpl();
        	List<Recruit> recruits=recruitDaoImpl.getAll();
        	
        	Page page2=new Page(2,recruits.size(),currentPage);
				currentPage=page2.getCurrentPage();
				
                               	
                               	int t;
                               
                             
        	
        	if(recruits!=null&&recruits.size()>0)
        		  for(t=page2.getFromIndex();t<page2.getToIndex();t++){
                              Recruit recruit=recruits.get(t);
        
         %>
        <tr>
          <td 
                  height=1><br>
              <table style="width: 700px" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EBEBEB" >
                <tr bgcolor="#DFDFDF">
                  <td width="174" height="30" align="center" bgcolor="#F6F6F6" >职位名称：</td>
                  <td colspan="2" bgcolor="#FFFFFF" >&nbsp;<%=recruit.getJob() %> </td>
                  <td width="238" bgcolor="#FFFFFF" >&nbsp;<a href="HrDemandAccept.jsp?job=<%=recruit.getJob()%>"><font color="#FF0000">应聘此岗位</font></a> </td>
                </tr>
                <tr bgcolor="#DFDFDF">
                  <td width="174" height="30" align="center" bgcolor="#F6F6F6" >工作地点：</td>
                  <td colspan="3" valign="top" bgcolor="#FFFFFF" >&nbsp;<%=recruit.getAddress() %></td>
                </tr>
                <tr bgcolor="#DFDFDF">
                  <td width="174" height="30" align="center" bgcolor="#F6F6F6" >工资待遇：</td>
                  <td width="198" bgcolor="#FFFFFF">&nbsp;<%=recruit.getSalar()!=null&&!recruit.getSalar().equals("")?recruit.getSalar():"面议" %></td>
                  <td width="101" align="center" bgcolor="#FFFFFF" >发布日期：</td>
                  <td bgcolor="#FFFFFF" >&nbsp;<%=new SimpleDateFormat("yyyy-MM-dd").format(recruit.getPublisherTime()) %> </td>
                </tr>
                <tr bgcolor="#DFDFDF">
                  <td height="30" align="center" bgcolor="#F6F6F6" >需求人数：</td>
                  <td align="center" bgcolor="#FFFFFF"><div align="left">&nbsp;<%=recruit.getCounts() %> 人</div></td>
                  <td align="center" bgcolor="#FFFFFF">有效期限：</td>
                  <td align="center" bgcolor="#FFFFFF"><div align="left">&nbsp;<%=recruit.getValidity() %></div></td>
                </tr>
                <tr bgcolor="#DFDFDF">
                  <td width="174" height="30" align="center" bgcolor="#F6F6F6" ><font color=#000066>具体要求：</font></td>
                  <td colspan="3" align="center" bgcolor="#FFFFFF" style="width: 500px;">
                  <div style="width: 500px;overflow: hidden;word-break: break-all;"><%=recruit.getContent() %></td></div>
                </tr>
                <tr bgcolor="#F7F7F7">
                  <td height="10" colspan="4"><img src="images/imgbyj/Hrbackup.gif" width="96" height="10"></td>
                </tr>
            </table></td>
        </tr>
        <%
        	}
         %>
       
    </table> <table width="90%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td height="15"></td>
                                </tr>
                              </table></td>
  </tr>
  <tr>
    <td> 
                  
                  	<form name="showpages" method="Post" action="HrDemand.jsp">
      		<table align="center" width="80%"  border="0" cellpadding="0" cellspacing="0">
      		<tbody>
    
      			<tr><td align="center">共 <b><%=recruits.size() %></b> 条记录&nbsp;&nbsp;<a href="HrDemand.jsp?pageNo=1">首页</a><a href="HrDemand.jsp?pageNo=<%=currentPage-1%>"> 上一页</a>&nbsp;<a href="HrDemand.jsp?pageNo=<%=currentPage+1%>">下一页<a href="HrDemand.jsp?pageNo=<%=page2.getPageCount()%>">&nbsp;尾页</a> &nbsp;页次：<strong><font color="red"><%=currentPage %></font>/<%=page2.getPageCount() %></strong>页 &nbsp;<b>2</b>条记录/页&nbsp;转到：
      			<select name="pageNo" size="1" onchange="javascript:submit()">
      			<%
      				int j;
      				for(j=1;j<=page2.getPageCount();j++){ %>
      				<option value="<%=j%>" <%if(j==currentPage){%> <%{%>selected='selected'<%}}%>>第<%=j%>页</option>
      				<%}%>
      			</select></td></tr></tbody></table>
      	</form>
                  
                  
                                              </td>
                                            </tr>
                                          </table>
                                        
			</td>
          </tr>
      </table></td>
  </tr>
</table>

<%@ include file="foot.jsp"%>